Work conserving schedular based on ranking

ABSTRACT

A work conserving scheduler can be implemented based on a ranking system to provide the scalability of time stamps while avoiding the fast search associated with a traditional time stamp implementation. Each queue can be assigned a time stamp that is initially set to zero. The time stamp for a queue can be incremented each time a data packet from the queue is processed. To provide varying weights to the different queues, the time stamp for the queues can be incremented at varying rates. The data packets can be processed from the queues based on the tier rank order of the queues as determined from the time stamp associated with each queue. To increase the speed at which the ranking is determined, the ranking can be calculate from a subset of the bits defining the time stamp rather than the entire bit set.

CROSS REFERENCE TO RELATED APPLICATIONS

This application is a Continuation of U.S. patent application Ser. No.14/462,453, filed Aug. 18, 2014, and entitled “WORK CONSERVING SCHEDULARBASED ON RANKING”, which claims priority to U.S. provisional applicationNo. 61/900,377, filed on Nov. 5, 2013, both of which are incorporated byreference herein in their entirety.

TECHNICAL FIELD

The present technology pertains to work schedulers, and morespecifically pertains to a work conserving scheduler based on ranking.

BACKGROUND

The most popular work conserving scheduler design is Deficit WeightedRound Robin (DWRR). In this design, a deficit value is maintained foreach queue from which data packets are processed. The deficit value canindicate the remaining amount of credits available to process the datain the queue. As long as the deficit for a queue is greater than zero,the queue is eligible to process requests. Data packets are processedfrom each eligible queue in a round robin manner, using up credits aswork is done, until each queue is ineligible, at which time each queueis credited with additional credit and the deficit for each queue isreset accordingly. To provide differing weights to the queues, theamount of data credited to each queue can vary. Accordingly, a queuewith a greater weight can be credited with more data, thereby ensuringthat a greater amount of data is processed from the queue before thequeues are all refreshed. At any moment a queue is assigned one of onlytwo priorities: eligible to be scheduled, or ineligible to be scheduled.

An alternative to DWRR is to use time stamps instead of a deficit foreach queue. A time stamp for each queue can be initially set at zero andthen incremented as data is processed from the queue. Data packets canbe processed from the queue with the minimum time stamp. There can bemany levels of priorities in the system. For example if the time stampvalue is between 0 and 255 (and 8 bit value), a queue can be assignedone of 256 priority values corresponding to the time stamp value. Thisrequires a fast search to be performed between each process to identifythe queue with the minimum time stamp. To provide differing weights tothe queues, each time stamp can be incremented at differing rates. Thus,the time stamp for a queue with a higher weight can be incremented at aslower rate than the time stamp for a queue with a lower weight.Managing the weight by utilizing differing rates allows the queues to becontinuously credited rather than waiting for the queue to becomeineligible to refresh.

BRIEF DESCRIPTION OF THE DRAWINGS

In order to describe the manner in which the above-recited and otheradvantages and features of the disclosure can be obtained, a moreparticular description of the principles briefly described above will berendered by reference to specific embodiments thereof which areillustrated in the appended drawings. Understanding that these drawingsdepict only example embodiments of the disclosure and are not thereforeto be considered to be limiting of its scope, the principles herein aredescribed and explained with additional specificity and detail throughthe use of the accompanying drawings in which:

FIG. 1 illustrates an example network device according to some aspectsof the subject technology;

FIGS. 2A and 2B illustrate example system embodiments of a computingdevice;

FIG. 3 illustrates a schematic block diagram of an example architecturefor a network fabric;

FIG. 4 illustrates an example overlay network;

FIG. 5 illustrates an example system embodiment according to someaspects of the subject technology;

FIG. 6 illustrates an example embodiment of processing data packetsusing a work conserving scheduler based on ranking; and

FIG. 7 illustrates an example method embodiment of determining thehighest eligible tier rank.

DESCRIPTION OF EXAMPLE EMBODIMENTS

Various embodiments of the disclosure are discussed in detail below.While specific implementations are discussed, it should be understoodthat this is done for illustration purposes only. A person skilled inthe relevant art will recognize that other components and configurationsmay be used without parting from the spirit and scope of the disclosure.

Overview

A work conserving scheduler can be implemented based on a ranking systemto provide the scalability and superior resolution of time stamps whileavoiding the cost of fast search computation associated with atraditional time stamp implementation. Each queue can be assigned a timestamp that is initially set to zero. The time stamp for a queue can beincremented each time a data packet from the queue is processed. Toprovide varying weights to the different queues, the time stamp for thequeues can be incremented at varying rates, thereby causing data packetsfrom the queues that are incremented at the slowest rate to be processedmore often. Let R be the desired rate, Q be the amount of workperformed, then the time stamp value T can be re-calculated after workas T=T+Q/R. In some cases, Q can be proportional to the size of dataprocessed, so that processing 100 kb of data advances the time stamp bytwice the amount as processing 50 kb of data. In other cases Q can bereplaced by a constant C, so that each time a queue is worked on thetime stamp is advanced by a fixed amount, C/R. Generally speaking thelatter option may be chosen to avoid a division operation because C/Rcan be computed offline.

The data packets can be processed from the queues based on the tier rankorder of the queues as determined from the time stamp associated witheach queue. To increase the speed at which the ranking is determined,the ranking can be calculate from a subset of the bits defining the timestamp rather than the entire bit set. For example, the ranking can becalculated from the four most significant bits (MSB) of a time stampthat is greater than 4 bits, resulting in 16 possible tier ranks for thequeues. A data packet can be processed from a queue selected from thehighest tier rank, i.e., the queues whose time stamp values' four MSBshave the smallest value. The current highest rank tier can be saved andused to increase the speed at which the next queue is selected.

To further speed up the search for the eligible highest rank tier, a bitof information is stored per tier indicating if that tier is eligible,i.e., if it contains at least one member queue. For example in a 16 tierrank system, 16 bits of information is maintained. Finding the highestrank tier that is eligible only requires searching the 16 bit vector.

Description

A computer network is a geographically distributed collection of nodesinterconnected by communication links and segments for transporting databetween endpoints, such as personal computers and workstations. Manytypes of networks are available, with the types ranging from local areanetworks (LANs) and wide area networks (WANs) to overlay andsoftware-defined networks, such as virtual extensible local areanetworks (VXLANs).

LANs typically connect nodes over dedicated private communications linkslocated in the same general physical location, such as a building orcampus. WANs, on the other hand, typically connect geographicallydispersed nodes over long-distance communications links, such as commoncarrier telephone lines, optical lightpaths, synchronous opticalnetworks (SONET), or synchronous digital hierarchy (SDH) links. LANs andWANs can include layer 2 (L2) and/or layer 3 (L3) networks and devices.

The Internet is an example of a WAN that connects disparate networksthroughout the world, providing global communication between nodes onvarious networks. The nodes typically communicate over the network byexchanging discrete frames or packets of data according to predefinedprotocols, such as the Transmission Control Protocol/Internet Protocol(TCP/IP). In this context, a protocol can refer to a set of rulesdefining how the nodes interact with each other. Computer networks maybe further interconnected by an intermediate network node, such as arouter, to extend the effective “size” of each network.

Overlay networks generally allow virtual networks to be created andlayered over a physical network infrastructure. Overlay networkprotocols, such as Virtual Extensible LAN (VXLAN), NetworkVirtualization using Generic Routing Encapsulation (NVGRE), NetworkVirtualization Overlays (NVO3), and Stateless Transport Tunneling (STT),provide a traffic encapsulation scheme which allows network traffic tobe carried across L2 and L3 networks over a logical tunnel. Such logicaltunnels can be originated and terminated through virtual tunnel endpoints (VTEPs).

Moreover, overlay networks can include virtual segments, such as VXLANsegments in a VXLAN overlay network, which can include virtual L2 and/orL3 overlay networks over which VMs communicate. The virtual segments canbe identified through a virtual network identifier (VNI), such as aVXLAN network identifier, which can specifically identify an associatedvirtual segment or domain.

Network virtualization allows hardware and software resources to becombined in a virtual network. For example, network virtualization canallow multiple numbers of VMs to be attached to the physical network viarespective virtual LANs (VLANs). The VMs can be grouped according totheir respective VLAN, and can communicate with other VMs as well asother devices on the internal or external network.

Network segments, such as physical or virtual segments; networks;devices; ports; physical or logical links; and/or traffic in general canbe grouped into a bridge or flood domain. A bridge domain or flooddomain can represent a broadcast domain, such as an L2 broadcast domain.A bridge domain or flood domain can include a single subnet, but canalso include multiple subnets. Moreover, a bridge domain can beassociated with a bridge domain interface on a network device, such as aswitch. A bridge domain interface can be a logical interface whichsupports traffic between an L2 bridged network and an L3 routed network.In addition, a bridge domain interface can support internet protocol(IP) termination, VPN termination, address resolution handling, MACaddressing, etc. Both bridge domains and bridge domain interfaces can beidentified by a same index or identifier.

Furthermore, endpoint groups (EPGs) can be used in a network for mappingapplications to the network. In particular, EPGs can use a grouping ofapplication endpoints in a network to apply connectivity and policy tothe group of applications. EPGs can act as a container for buckets orcollections of applications, or application components, and tiers forimplementing forwarding and policy logic. EPGs also allow separation ofnetwork policy, security, and forwarding from addressing by insteadusing logical application boundaries.

Cloud computing can also be provided in one or more networks to providecomputing services using shared resources. Cloud computing can generallyinclude Internet-based computing in which computing resources aredynamically provisioned and allocated to client or user computers orother devices on-demand, from a collection of resources available viathe network (e.g., “the cloud”). Cloud computing resources, for example,can include any type of resource, such as computing, storage, andnetwork devices, virtual machines (VMs), etc. For instance, resourcesmay include service devices (firewalls, deep packet inspectors, trafficmonitors, load balancers, etc.), compute/processing devices (servers,CPU's, memory, brute force processing capability), storage devices(e.g., network attached storages, storage area network devices), etc. Inaddition, such resources may be used to support virtual networks,virtual machines (VM), databases, applications (Apps), etc.

Cloud computing resources may include a “private cloud,” a “publiccloud,” and/or a “hybrid cloud.” A “hybrid cloud” can be a cloudinfrastructure composed of two or more clouds that inter-operate orfederate through technology. In essence, a hybrid cloud is aninteraction between private and public clouds where a private cloudjoins a public cloud and utilizes public cloud resources in a secure andscalable manner. Cloud computing resources can also be provisioned viavirtual networks in an overlay network, such as a VXLAN.

The disclosed technology addresses the need in the art for a workconserving scheduler based on ranking. Disclosed are systems, methods,and computer-readable storage media for a work conserving schedule basedon ranking. A brief introductory description of example systems andnetworks, as illustrated in FIGS. 1 through 4, is disclosed herein. Adetailed description of a work conserving scheduler based on ranking,related concepts, and example variations, will then follow. Thesevariations shall be described herein as the various embodiments are setforth. The disclosure now turns to FIG. 1.

FIG. 1 illustrates an example network device 110 suitable forimplementing the present invention. Network device 110 includes a mastercentral processing unit (CPU) 162, interfaces 168, and bus 115 (e.g., aPCI bus). When acting under the control of appropriate software orfirmware, CPU 162 is responsible for executing packet management, errordetection, and/or routing functions, such as miscabling detectionfunctions, for example. CPU 162 preferably accomplishes all thesefunctions under the control of software including an operating systemand any appropriate applications software. CPU 162 may include one ormore processors 163 such as a processor from the Motorola family ofmicroprocessors or the MIPS family of microprocessors. In an alternativeembodiment, processor 163 is specially designed hardware for controllingthe operations of network device 110. In a specific embodiment, memory161 (such as non-volatile RAM and/or ROM) also forms part of CPU 162.However, there are many different ways in which memory could be coupledto the system.

Interfaces 168 are typically provided as interface cards (sometimesreferred to as “line cards”). Generally, they control the sending andreceiving of data packets over the network and sometimes support otherperipherals used with network device 110. Among the interfaces 168 thatmay be provided are Ethernet interfaces, frame relay interfaces, cableinterfaces, DSL interfaces, token ring interfaces, and the like. Inaddition, various very high-speed interfaces may be provided such asfast token ring interfaces, wireless interfaces, Ethernet interfaces,Gigabit Ethernet interfaces, ATM interfaces, HSSI interfaces, POSinterfaces, FDDI interfaces and the like. Generally, these interfaces168 may include ports appropriate for communication with the appropriatemedia. In some cases, they may also include an independent processorand, in some instances, volatile RAM. The independent processors maycontrol such communications intensive tasks as packet switching, mediacontrol and management. By providing separate processors for thecommunications intensive tasks, these interfaces allow CPU 162 toefficiently perform routing computations, network diagnostics, securityfunctions, etc.

Although network device 110 shown in FIG. 1 is one specific embodimentof a network device architecture that can be used to implement thepresent invention, it is by no means the only network devicearchitecture on which the present invention can be implemented. Forexample, an architecture having a single processor that handlescommunications as well as routing computations, etc. is often used.Further, other types of interfaces and media could also be used withnetwork device 110.

The present invention can also be implemented on any type of generalcomputing device capable of network communication with other computingdevices. For example, a computing device can be a personal computingdevice such as a desktop or workstation, a business server, or aportable computing device, such as a laptop, smart phone, or a tabletPC. A computing device can include some or all of the features,components, and peripherals of computing device 200 of FIGS. 2A and 2B.

Regardless of the configuration of network device 100, it may employ oneor more memories or memory modules (including memory 161) configured tostore program instructions for the general-purpose network operationsand mechanisms for roaming, route optimization and routing functionsdescribed herein. The program instructions may control the operation ofan operating system and/or one or more applications, for example. Thememory or memories may also be configured to store tables such asmobility binding, registration, and association tables, etc.

FIG. 2A, and FIG. 2B illustrate example possible system embodiments of acomputing device. The more appropriate embodiment will be apparent tothose of ordinary skill in the art when practicing the presenttechnology. Persons of ordinary skill in the art will also readilyappreciate that other system embodiments are possible.

FIG. 2A illustrates an example system embodiment of computing device 200utilizing a conventional system bus computing system architecture,wherein the components of the system are in electrical communicationwith each other using bus 205. Example computing device 200 includesprocessing unit (CPU or processor) 210 and system bus 205 that couplesvarious system components including system memory 215, such as read onlymemory (ROM) 220 and random access memory (RAM) 225, to processor 210.Computing device 200 can include a cache of high-speed memory connecteddirectly with, in close proximity to, or integrated as part of processor210. Computing device 200 can copy data from memory 215 and/or storagedevice 230 to cache 212 for quick access by processor 210. In this way,cache 212 can provide a performance boost that avoids delays toprocessor 210 while waiting for data. These and other modules cancontrol or be configured to control processor 210 to perform variousactions. System memory 215 may be available for use as well. Memory 215can include multiple different types of memory with differentperformance characteristics. Processor 210 can include any generalpurpose processor and a hardware module or software module, such asmodule 1 232, module 2 234, and module 3 236 stored in storage device230, configured to control processor 210 as well as a special-purposeprocessor where software instructions are incorporated into the actualprocessor design. Processor 210 may essentially be a completelyself-contained computing system, containing multiple cores orprocessors, a bus, memory controller, cache, etc. A multi-core processormay be symmetric or asymmetric.

Computing device 200 can include input device 245 to enable userinteraction with computing device 200. Input device 245 can representany number of input mechanisms, such as a microphone for speech, atouch-sensitive screen for gesture or graphical input, keyboard, mouse,motion input, speech and so forth. Output device 235 can also be one ormore of a number of output mechanisms known to those of skill in theart. In some instances, multimodal systems can enable a user to providemultiple types of input to communicate with computing device 200.Communications interface 240 can generally govern and manage the userinput and system output. There is no restriction on operating on anyparticular hardware arrangement and therefore the basic features heremay easily be substituted for improved hardware or firmware arrangementsas they are developed.

Storage device 230 is a non-volatile memory and can be a hard disk orother types of computer readable media which can store data that areaccessible by a computer, such as magnetic cassettes, flash memorycards, solid state memory devices, digital versatile disks, cartridges,random access memories (RAMs) 225, read only memory (ROM) 220, andhybrids thereof.

Storage device 230 can include software modules 232, 234, 236 forcontrolling processor 210. Other hardware or software modules arecontemplated. Storage device 230 can be connected to system bus 205. Inone aspect, a hardware module that performs a particular function caninclude the software component stored in a computer-readable medium inconnection with the necessary hardware components, such as processor210, bus 205, display 235, and so forth, to carry out the function.

FIG. 2B illustrates a system embodiments of computing device 250 havinga chipset architecture that can be used in executing the describedmethod and generating and displaying a graphical user interface (GUI).Computing device 250 is an example of computer hardware, software, andfirmware that can be used to implement the disclosed technology.Computing device 250 can include processor 255, representative of anynumber of physically and/or logically distinct resources capable ofexecuting software, firmware, and hardware configured to performidentified computations. Processor 255 can communicate with chipset 260that can control input to and output from processor 255. In thisexample, chipset 260 outputs information to output 265, such as adisplay, and can read and write information to storage device 270, whichcan include magnetic media, and solid state media. Chipset 260 can alsoread data from and write data to RAM 275. Computing device 250 caninclude bridge 280 for interfacing with a variety of user interfacecomponents 285 such as chipset 260. Such user interface components 285can include a keyboard, a microphone, touch detection and processingcircuitry, a pointing device, such as a mouse, and so on. In general,inputs to computing device 250 can come from any of a variety ofsources, machine generated and/or human generated.

Chipset 260 can also interface with one or more communication interfaces290 that can have different physical interfaces. Such communicationinterfaces can include interfaces for wired and wireless local areanetworks, for broadband wireless networks, as well as personal areanetworks. Some applications of the methods for generating, displaying,and using the GUI disclosed herein can include receiving ordereddatasets over the physical interface or be generated by computing device250 itself by processor 255 analyzing data stored in storage 270 or 275.Further, computing device 250 can receive inputs from a user via userinterface components 285 and execute appropriate functions, such asbrowsing functions by interpreting these inputs using processor 255.

It can be appreciated that example computing devices 200 and 250 canhave more than one processor 210 or be part of a group or cluster ofcomputing devices networked together to provide greater processingcapability.

FIG. 3 illustrates a schematic block diagram of example architecture 300for network fabric 312. Network fabric 312 can include spine switches302 _(A), 302 _(B), . . . , 302 _(N) (collectively “302”) connected toleaf switches 304 _(A), 304 _(B), 304 _(C), . . . , 304 _(N)(collectively “304”) in network fabric 312.

Spine switches 302 can be L3 switches in fabric 312. However, in somecases, spine switches 302 can also, or otherwise, perform L2functionalities. Further, spine switches 302 can support variouscapabilities, such as 40 or 10 Gbps Ethernet speeds. To this end, spineswitches 302 can include one or more 40 Gigabit Ethernet ports. Eachport can also be split to support other speeds. For example, a 40Gigabit Ethernet port can be split into four 10 Gigabit Ethernet ports.

In some embodiments, one or more of spine switches 302 can be configuredto host a proxy function that performs a lookup of the endpoint addressidentifier to locator mapping in a mapping database on behalf of leafswitches 304 that do not have such mapping. The proxy function can dothis by parsing through the packet to the encapsulated, tenant packet toget to the destination locator address of the tenant. Spine switches 302can then perform a lookup of their local mapping database to determinethe correct locator address of the packet and forward the packet to thelocator address without changing certain fields in the header of thepacket.

When a packet is received at spine switch 302 _(i), spine switch 302_(i) can first check if the destination locator address is a proxyaddress. If so, spine switch 302 _(i) can perform the proxy function aspreviously mentioned. If not, spine switch 302 _(i) can lookup thelocator in its forwarding table and forward the packet accordingly.

Spine switches 302 connect to leaf switches 304 in fabric 312. Leafswitches 304 can include access ports (or non-fabric ports) and fabricports. Fabric ports can provide uplinks to spine switches 302, whileaccess ports can provide connectivity for devices, hosts, endpoints,VMs, or external networks to fabric 312.

Leaf switches 304 can reside at the edge of fabric 312, and can thusrepresent the physical network edge. In some cases, leaf switches 304can be top-of-rack (“ToR”) switches configured according to a ToRarchitecture. In other cases, leaf switches 304 can be aggregationswitches in any particular topology, such as end-of-row (EoR) ormiddle-of-row (MoR) topologies. Leaf switches 304 can also representaggregation switches, for example.

Leaf switches 304 can be responsible for routing and/or bridging thetenant packets and applying network policies. In some cases, a leafswitch can perform one or more additional functions, such asimplementing a mapping cache, sending packets to the proxy function whenthere is a miss in the cache, encapsulate packets, enforce ingress oregress policies, etc.

Moreover, leaf switches 304 can contain virtual switchingfunctionalities, such as a virtual tunnel endpoint (VTEP) function asexplained below in the discussion of VTEP 408 in FIG. 4. To this end,leaf switches 304 can connect fabric 312 to an overlay network, such asoverlay network 400 illustrated in FIG. 4.

Network connectivity in fabric 312 can flow through leaf switches 304.Here, leaf switches 304 can provide servers, resources, endpoints,external networks, or VMs access to fabric 312, and can connect leafswitches 304 to each other. In some cases, leaf switches 304 can connectEPGs to fabric 312 and/or any external networks. For example, each EPGcan connect to fabric 312 via one of leaf switches 304.

Endpoints 310A-E (collectively “310”) can connect to fabric 312 via leafswitches 304. For example, endpoints 310A and 310B can connect directlyto leaf switch 304A, which can connect endpoints 310A and 310B to fabric312 and/or any other one of leaf switches 304. Similarly, endpoint 310Ecan connect directly to leaf switch 304C, which can connect endpoint310E to fabric 312 and/or any other of leaf switches 304. On the otherhand, endpoints 310C and 310D can connect to leaf switch 304B via L2network 306. Similarly, the wide area network (WAN) can connect to leafswitches 304C or 304D via L3 network 308.

Endpoints 310 can include any communication device, such as a computingdevice, network device, server, switch, router, etc. In some cases,endpoints 310 can include a server, hypervisor, or switch configuredwith a VTEP functionality which connects an overlay network, such asoverlay network 400 below, with fabric 312. For example, in some cases,endpoints 310 can represent one or more of the VTEPs 408A-D illustratedin FIG. 4. Here, the VTEPs 408A-D can connect to fabric 312 via leafswitches 304. The overlay network can host physical devices, such asservers, applications, EPGs, virtual segments, virtual workloads, etc.In addition, endpoints 310 can host virtual workload(s), clusters, andapplications or services, which can connect with fabric 312 or any otherdevice or network, including an external network. For example, one ormore of endpoints 310 can host, or connect to, a cluster of loadbalancers or an EPG of various applications.

Although fabric 312 is illustrated and described herein as an exampleleaf-spine architecture, one of ordinary skill in the art will readilyrecognize that the subject technology can be implemented based on anynetwork fabric, including any data center or cloud network fabric.Indeed, other architectures, designs, infrastructures, and variationsare contemplated herein.

FIG. 4 illustrates an example overlay network 400. Overlay network 400uses an overlay protocol, such as VXLAN, VGRE, VO3, or STT, toencapsulate traffic in L2 and/or L3 packets which can cross overlay L3boundaries in the network. As illustrated in FIG. 4, overlay network 400can include hosts 406A-D interconnected via network 402.

Network 402 can include a packet network, such as an IP network.Moreover, network 402 can connect overlay network 400 with fabric 312 inFIG. 3. For example, VTEPs 408A-D can connect with leaf switches 304 infabric 312 via network 402.

Hosts 406A-D include virtual tunnel end points (VTEP) 408A-D, which canbe virtual nodes or switches configured to encapsulate andde-encapsulate data traffic according to a specific overlay protocol ofthe network 400, for the various virtual network identifiers (VNIDs)410A-I. Moreover, hosts 406A-D can include servers containing a VTEPfunctionality, hypervisors, and physical switches, such as L3 switches,configured with a VTEP functionality. For example, hosts 406A and 406Bcan be physical switches configured to run VTEPs 408A-B. Here, hosts406A and 406B can be connected to servers 404A-D, which, in some cases,can include virtual workloads through VMs loaded on the servers, forexample.

In some embodiments, network 400 can be a VXLAN network, and VTEPs408A-D can be VXLAN tunnel end points. However, as one of ordinary skillin the art will readily recognize, network 400 can represent any type ofoverlay or software-defined network, such as NVGRE, STT, or even overlaytechnologies yet to be invented.

The VNIDs can represent the segregated virtual networks in overlaynetwork 400. Each of the overlay tunnels (VTEPs 408A-D) can include oneor more VNIDs. For example, VTEP 408A can include VNIDs 1 and 2, VTEP408B can include VNIDs 1 and 3, VTEP 408C can include VNIDs 1 and 2, andVTEP 408D can include VNIDs 1-3. As one of ordinary skill in the artwill readily recognize, any particular VTEP can, in other embodiments,have numerous VNIDs, including more than the 3 VNIDs illustrated in FIG.4.

The traffic in overlay network 400 can be segregated logically accordingto specific VNIDs. This way, traffic intended for VNID 1 can be accessedby devices residing in VNID 1, while other devices residing in otherVNIDs (e.g., VNIDs 2 and 3) can be prevented from accessing suchtraffic. In other words, devices or endpoints connected to specificVNIDs can communicate with other devices or endpoints connected to thesame specific VNIDs, while traffic from separate VNIDs can be isolatedto prevent devices or endpoints in other specific VNIDs from accessingtraffic in different VNIDs.

Servers 404A-D and VMs 404E-I can connect to their respective VNID orvirtual segment, and communicate with other servers or VMs residing inthe same VNID or virtual segment. For example, server 404A cancommunicate with server 404C and VMs 404E and 404G because they allreside in the same VNID, viz., VNID 1. Similarly, server 404B cancommunicate with VMs 404F, H because they all reside in VNID 2. VMs404E-I can host virtual workloads, which can include applicationworkloads, resources, and services, for example. However, in some cases,servers 404A-D can similarly host virtual workloads through VMs hostedon the servers 404A-D. Moreover, each of the servers 404A-D and VMs404E-I can represent a single server or VM, but can also representmultiple servers or VMs, such as a cluster of servers or VMs.

VTEPs 408A-D can encapsulate packets directed at the various VNIDs 1-3in the overlay network 400 according to the specific overlay protocolimplemented, such as VXLAN, so traffic can be properly transmitted tothe correct VNID and recipient(s). Moreover, when a switch, router, orother network device receives a packet to be transmitted to a recipientin the overlay network 400, it can analyze a routing table, such as alookup table, to determine where such packet needs to be transmitted sothe traffic reaches the appropriate recipient. For example, if VTEP 408Areceives a packet from endpoint 404B that is intended for endpoint 404H,VTEP 408A can analyze a routing table that maps the intended endpoint,endpoint 404H, to a specific switch that is configured to handlecommunications intended for endpoint 404H. VTEP 408A might not initiallyknow, when it receives the packet from endpoint 404B, that such packetshould be transmitted to VTEP 408D in order to reach endpoint 404H.Accordingly, by analyzing the routing table, VTEP 408A can lookupendpoint 404H, which is the intended recipient, and determine that thepacket should be transmitted to VTEP 408D, as specified in the routingtable based on endpoint-to-switch mappings or bindings, so the packetcan be transmitted to, and received by, endpoint 404H as expected.

However, continuing with the previous example, in many instances, VTEP408A may analyze the routing table and fail to find any bindings ormappings associated with the intended recipient, e.g., endpoint 404H.Here, the routing table may not yet have learned routing informationregarding endpoint 404H. In this scenario, the VTEP 408A may likelybroadcast or multicast the packet to ensure the proper switch associatedwith endpoint 404H can receive the packet and further route it toendpoint 404H.

In some cases, the routing table can be dynamically and continuouslymodified by removing unnecessary or stale entries and adding new ornecessary entries, in order to maintain the routing table up-to-date,accurate, and efficient, while reducing or limiting the size of thetable. As one of ordinary skill in the art will readily recognize, theexamples and technologies provided above are simply for clarity andexplanation purposes, and can include many additional concepts andvariations.

FIG. 5 illustrates an example system embodiment in which a workconserving scheduler can be implemented based on a ranking system toprovide the scalability and resolution of time stamps while avoiding thefast search associated with a traditional time stamp implementation. Asshown device 500 includes scheduler 505, which can be configured tomanage data transfer from one or more source devices to one or morerecipient devices. Device 500 can be any type of computing and/ornetworking device, such as those described in FIGS. 1, 2A and 2B.Scheduler 505 can be used to manage data packet transmissions across anetwork between various network devices and/or computing devices, suchas those described in FIGS. 1, 2A and 2B. For example, in someembodiments, device 505 can be the source device transmitting data toone or more recipient devices in network connection with device 505.Alternatively, in some embodiments, device 505 can be in networkconnection with one or more source devices and recipient devices andserve as an intermediary between the various devices to transmit databetween them.

Scheduler 505 can assign data that is scheduled to be transferred to oneor more queues. Scheduler 505 can process the data assigned to a queuein a first in first out order corresponding to the order in which thedata was assigned to the queue. As shown, device 500 can include datastorage 510 configured to maintain data and queues, and scheduler 505can be configured to communicate with data storage 510 to access thequeues to retrieve and store data.

Scheduler 505 can utilize multiple queues to manage transmission of datafrom multiple destinations and/or to multiple sources. For example, databeing transmitted to a specified destination and/or from a specifiedsource can be assigned to a queue associated with the specified sourceand/or destination, while data being transmitted to a differentdestination and/or from a different source can be assigned to adifferent queue.

Scheduler 505 can be configured to manage the order in which the queuesare processed to meet specified transmission goals and/or preferences.For example, the various queues can be assigned varying weights to givevarying priority levels to the data assigned to the various queues. Aqueue can be given a higher weight to ensure that data assigned to thequeue is processed at a higher rate than data assigned to a queue with alower weight.

Scheduler 505 can process data packets from the queues based on a tierrank order of the queues that is calculated based on a time stampassigned to each queue. Scheduler 505 can assign each queue a time stampthat is initially set to a base value, such as zero. The time stamp foreach queue can be stored in data storage 510 and associated with itscorresponding queue. Scheduler 505 can be configured to increment thetime stamp associated with a queue each time a data packet from thequeue is processed. Processing a data packet can include removing thedata packet from the queue, and transmitting the data packet to itsintended recipient device.

In some embodiments, scheduler 505 can be configured to increment thetime stamp by an amount that is based on or corresponds to the size ofthe data packet that was processed. For example, if the data packet thatwas processed was 500kb, scheduler 505 can increment the time stamp by500 or some other value that was calculated based on the size of thedata packet. Let Q be the amount of data processed, then the time stampvalue T can be updated as T=T+Q.

Alternatively, in some embodiments, scheduler 505 can be configured toincrement the time stamp by a set predetermined amount that is not basedon the size of the data packet that was processed. For example,scheduler 505 can be configured to increment the time stamp associatedwith a queue by 100 each time a data packet is processed from the queue.Let C be the predetermined value, the time stamp value T can be updatedas T=T+C.

In some embodiments, scheduler 505 can be configured to wrap around thetime stamp value for a queue when the time stamp value reaches a maximumvalue. The maximum value can be based on the number of bits used torepresent the time stamp value. For example, if 8 bits are used, themaximum value for time stamp value can be 256, after which the timestamp value wraps back around to 0.

To provide varying weights to the different queues, scheduler 505 can beconfigured to increment the time stamp for the queues at varying rates.For example, an administrator can set a weighted rate at which the timestamp for each queue is to be incremented and scheduler 505 can beconfigured to increment the time stamps for the various queuesaccordingly. In some embodiments, the weighted rate can be a staticpredetermined amount. The static predetermined amount can be the totalamount by which a time stamp is incremented or, alternatively, anadditional amount the time stamp is incremented. For example, theweighted rate for a queue can be a static amount such as 100 andscheduler 505 can increment the time stamp of the queue by 100 each timea data packet from the queue is processed. Alternatively, scheduler 505can increment the time stamp by an amount calculated based on the sizeof the data packet processed plus the fixed weighted rate amount of 100.

Alternatively, in some embodiments, the weighted rate can be amultiplier that is applied to the amount that the time stamp isincremented. For example, scheduler 505 can be configured to increment atime stamp for a queue based on the size of the data packet processedfrom the queue multiplied by the weighted rate assigned to the queue.Thus to reduce the rate at which a time stamp for a queue isincremented, the weighted rate for the queue can be set to a fractionalamount between 0 and 1. Alternatively, to increase the rate at which atime stamp for a queue is incremented, the weighted rate for the queuecan be set to an amount greater than 1. Let R be the rate and Q be theamount of data processed, time stamp value can be updated as T=T+Q/R.Or, represent the rate as the reciprocal of R, r=1/R, then T=T+Q*r.

Scheduler 505 can be configured to process data packets from the queuesaccording to the tier rank order of the queues as determined from thetime stamp associated with each queue. The tier rank order of a queuecan indicate the value of the time stamp assigned to the queue. Forexample, scheduler 505 can be configured to assign the queues to a tierrank such that the queues assigned to each tier rank have a lower timestamp value than queues assigned to a lower ranked tier rank, and ahigher tamp stamp value than queues assigned to a higher ranked tierrank. One easy way is to map a queue to a tier based on the MSBs of itstime stamp. For example in a 16 tier system, we can use the 4 MSBs ofthe time stamp to identify the tier rank of the queue.

Scheduler 505 can be configured to process data packets from a queuefrom the highest eligible tier rank. A tier rank can be eligible if atleast one queue is assigned to the tier rank. Processing a queue fromthe highest eligible tier rank can give priority to the queues with thelowest time stamp value. Scheduler 505 can be configured to recalculatethe tier rank for a queue each time a data packet is processed from thequeue.

To speed up the search for the highest ranked eligible tier, a bit ofinformation can be maintained for each tier indicating its eligibility.The bit is updated whenever a queue enters of leaves the correspondingtier. In order to find the highest eligible tier, only these bits areevaluated. In a 16 tier system only 16 bits need to be evaluated,independent of the number of queues supported. In contrast, the fastsearch computation load of a traditional time stamp operation increasesin proportion to the number of queues.

If multiple queues are assigned to a highest eligible tier rank,scheduler 505 can be configured to process a data packet from one of thequeues in the tier rank in any order that minimizes cost. For example,scheduler 505 can select from the queues in the highest eligible tierrank at random, according to a round robin order, etc.

To increase the speed at which the tier rank of a queue is determined,scheduler module 505 can be configured to calculate the tier rank basedon a subset of the bits defining the time stamp rather than the entirebit set. For example, the tier ranking can be calculated from the fourmost significant bits (MSB), resulting in 16 possible tier ranks for thequeues. Alternatively, the ranking can be calculated from the three MSB,resulting in 8 possible tier ranks. Whenever more than 1 bit is used,the ranking method provides more granular priorities than DWRR, whicheffectively has only two tiers: eligible and ineligible. This finergranularity results in quality of service that has better short termaccuracy to the desired rate.

In some embodiments, scheduler 505 can be configured to record thehighest eligible tier rank when a data packet is processed, which canthen be used as a starting position when identifying the next queue fromwhich to process a data packet. For example, scheduler 505 can beconfigured to begin the search for the next queue from which to processa data packet from the recorded highest tier rank and, if there are noother queues in the tier rank, continuing the search in the next lowertier rank. If there are no queues in the lowest tier rank, scheduler 505can continue the search at the highest tier rank.

Scheduler 505 can be configured to automatically credit the queues withadditional data prior to the queue being exhausted, when other queues'time stamps increase in value and move to a relatively lower tier. Thiscan result in each queue remaining eligible, however being assigned to atier rank that prioritizes the queue.

FIG. 6 illustrates an example embodiment of processing data packetsusing a work conserving scheduler based on ranking. As shown, the methodbegins at block 605 where the highest eligible tier rank is determined.The highest eligible tier rank can be the highest tier rank thatincludes at least one queue. Determining the highest eligible tier rankis described in greater detail in FIG. 7 and the accompanying text.

At block 610, a queue is selected from the highest eligible tier rank.If there is only one queue assigned to the highest eligible tier rank,then that queue is selected. Alternatively, if there are multiple queuesassigned to the highest eligible tier rank, one of the queues can beselected by random or, alternatively, selected according to a roundrobin order.

At block 615, a data packet is processed from the selected queue. Thiscan include removing the data packet from the queue and transmitting thedata packet to its intended recipient.

At block 620, the time stamp for the selected queue is incremented. Insome embodiments, the time stamp can be incremented according to thesize of the data packet, Q, that was transferred. In some embodiments,the time stamp can be incremented by a static value, C, that is notbased on the size of the data packet that was transferred. Further, insome embodiments, a weighted rate, R, can be applied when incrementingthe time stamp. For example, the weighted rate can be an additionalvalued added to the time stamp or, alternatively, a multiplier appliedto the value so that Q/R is added to the time stamp.

At block 625, the tier rank of the selected queue can be re-calculatedbased on the incremented time stamp. For example, the tier rank can becalculated based on a subset of the most significant bits used torepresent the time stamp, such as the 4 most significant bits. Using the4 most significant bits can result in 16 possible tier ranks. At block630, the selected queue can be assigned to the corresponding tier rank.Queues can be assigned to tier ranks such that queues with the highesttime stamp value are in the lowest tier rank and vice versa. There-calculated time stamp may put the queue in a different tier rank.

As a result of the queue moving to a different rank tier, the highestranked tier so far may become ineligible (containing no valid queue).For example if the serviced queue was the only member of the highestranked tier.

FIG. 7 illustrates an example method embodiment of determining thehighest eligible tier rank. A tier rank can be eligible if at least onequeue is assigned to the tier rank. As shown, the method begins at block705 where the current tier rank is identified. The current tier rank canbe the tier rank from which the previous queue was selected to process adata packet. The current tier rank can be recorded as an integer valuethat identifies a tier rank. For example, in an embodiments utilizing 16possible tier rank, the current tier rank can be an integer between0-15.

At block 710 it is determined if the current tier rank is eligible. Atier rank can be eligible if at least one queue is assigned to the tierrank. If at block 710 it is determined that the current tier rank is noteligible, the method continues to block 715 where it is determined ifthere is a tier rank that is ranked lower than the current tier rank. Ifthere is a tier rank ranked lower than the current tier rank, the methodcontinues to block 720 where the current tier rank is decremented to thenext tier rank. For example, if the current tier rank is and it is noteligible, the current tier rank can be decremented to 4. The method thenreturns to block 710.

If at block 715 it is determined that there is no tier rank ranked lowerthan the current tier rank, i.e. the current tier rank is the lowestranked tier rank, the method continues to block 725 where the currenttier rank is assigned to the highest ranked tier rank. For example, ifthere are 16 tier ranks 0-15, with 0 being the lowest and 15 being thehighest, the current tier rank can be assigned to 15. The method thenreturns to block 710.

If at block 710, it is determined that the current tier rank iseligible, the method continues to 730 where it is determined that thecurrent tier rank is the highest eligible tier rank.

For clarity of explanation, in some instances the present technology maybe presented as including individual functional blocks includingfunctional blocks comprising devices, device components, steps orroutines in a method embodied in software, or combinations of hardwareand software.

In some embodiments the computer-readable storage devices, mediums, andmemories can include a cable or wireless signal containing a bit streamand the like. However, when mentioned, non-transitory computer-readablestorage media expressly exclude media such as energy, carrier signals,electromagnetic waves, and signals per se.

Methods according to the above-described examples can be implementedusing computer-executable instructions that are stored or otherwiseavailable from computer readable media. Such instructions can comprise,for example, instructions and data which cause or otherwise configure ageneral purpose computer, special purpose computer, or special purposeprocessing device to perform a certain function or group of functions.Portions of computer resources used can be accessible over a network.The computer executable instructions may be, for example, binaries,intermediate format instructions such as assembly language, firmware, orsource code. Examples of computer-readable media that may be used tostore instructions, information used, and/or information created duringmethods according to described examples include magnetic or opticaldisks, flash memory, USB devices provided with non-volatile memory,networked storage devices, and so on.

Devices implementing methods according to these disclosures can comprisehardware, firmware and/or software, and can take any of a variety ofform factors. Typical examples of such form factors include laptops,smart phones, small form factor personal computers, personal digitalassistants, rackmount devices, standalone devices, and so on.Functionality described herein also can be embodied in peripherals oradd-in cards. Such functionality can also be implemented on a circuitboard among different chips or different processes executing in a singledevice, by way of further example.

The instructions, media for conveying such instructions, computingresources for executing them, and other structures for supporting suchcomputing resources are means for providing the functions described inthese disclosures.

Although a variety of examples and other information was used to explainaspects within the scope of the appended claims, no limitation of theclaims should be implied based on particular features or arrangements insuch examples, as one of ordinary skill would be able to use theseexamples to derive a wide variety of implementations. Further andalthough some subject matter may have been described in languagespecific to examples of structural features and/or method steps, it isto be understood that the subject matter defined in the appended claimsis not necessarily limited to these described features or acts. Forexample, such functionality can be distributed differently or performedin components other than those identified herein. Rather, the describedfeatures and steps are disclosed as examples of components of systemsand methods within the scope of the appended claims.

1. A method comprising: calculating, by a computer processor, a tierrank for a first queue from a subset of most significant bits defining atime stamp value associated with the first queue; calculating, by thecomputer processor, a tier rank for a second queue, different than thefirst queue, from a subset of most significant bits defining a timestamp value associated with the second queue; searching for a highestranked eligible tier; selecting the tier rank for the first queue basedon a bit associated with the tier rank for the first queue, wherein thebit associated with the tier rank for the first queue indicates arelative eligibility with respect to one or more different tiers; andprocessing, by the computer processor, at least one of a plurality ofdata packets in the first queue.
 2. The method of claim 1, furthercomprising: incrementing the time stamp value associated with the firstqueue by a first increment value; and recalculating the tier rank forthe first queue from the subset of most significant bits defining thetime stamp value associated with the first queue.
 3. The method of claim2, further comprising: after recalculating the tier rank for the firstqueue, determining that the tier rank for the second queue is higherthan the tier rank for the first queue; and processing at least one ofthe plurality of data packets contained in the second queue.
 4. Themethod of claim 3, further comprising: incrementing the time stamp valueassociated with the second queue by a second increment value differentthan the first increment value; and after incrementing the time stampvalue associated with the second queue, recalculating the tier rank forthe second queue from the subset of most significant bits defining thetime stamp value associated with the second queue.
 5. The method ofclaim 2, wherein the first increment value is calculated based on: asize of the at least one of the plurality of data packets contained inthe first queue that was processed, and a weight rate assigned to thefirst queue, wherein the weight rate assigned to the first queue isdifferent than a weight rate assigned to the second queue.
 6. The methodof claim 1, further comprising: removing the first queue from the tierrank for the first queue; and updating the bit associated with the tierrank for the first queue.
 7. The method of claim 1, wherein searchingfor the highest ranked eligible tier further comprises: comparing atleast one information bit for each of a plurality of tiers; andidentifying the highest ranked eligible tier based at least on the atleast one information bit for each of the plurality of tiers.
 8. Asystem comprising: a computer processor; and a memory storinginstructions that, when executed, cause the computer processor to:calculating, by a computer processor, a tier rank for a first queue froma subset of most significant bits defining a time stamp value associatedwith the first queue; calculating, by the computer processor, a tierrank for a second queue, different than the first queue, from a subsetof most significant bits defining a time stamp value associated with thesecond queue; searching for a highest ranked eligible tier; selectingthe tier rank for the first queue based on a bit associated with thetier rank for the first queue; and processing, by the computerprocessor, at least one of a plurality of data packets in the firstqueue.
 9. The system of claim 8, wherein the instructions are furtherconfigured to cause the processor to perform operations comprising:incrementing the time stamp value associated with the first queue by afirst increment value; and recalculating the tier rank for the firstqueue from the subset of most significant bits defining the time stampvalue associated with the first queue.
 10. The system of claim 9,wherein the instructions are further configured to cause the processorto perform operations comprising: after recalculating the tier rank forthe first queue, determining that the tier rank for the second queue ishigher than the tier rank for the first queue; and processing at leastone of the plurality of data packets contained in the second queue. 11.The system of claim 10, wherein the instructions are further configuredto cause the processor to perform operations comprising: incrementingthe time stamp value associated with the second queue by a secondincrement value different than the first increment value; and afterincrementing the time stamp value associated with the second queue,recalculating the tier rank for the second queue from the subset of mostsignificant bits defining the time stamp value associated with thesecond queue.
 12. The system of claim 9, wherein the first incrementvalue is calculated based on: a size of the at least one of theplurality of data packets contained in the first queue that wasprocessed, and a weight rate assigned to the first queue, wherein theweight rate assigned to the first queue is different than a weight rateassigned to the second queue.
 13. The system of claim 8, wherein theinstructions are further configured to cause the processor to performoperations comprising:, removing the first queue from the tier rank forthe first queue; and updating the bit associated with the tier rank forthe first queue.
 14. The system of claim 8, wherein searching for thehighest ranked eligible tier further comprises: comparing at least oneinformation bit for each of a plurality of tiers; and identifying thehighest ranked eligible tier based at least on the at least oneinformation bit for each of the plurality of tiers.
 15. A non-transitorycomputer-readable medium storing instructions that, when executed by acomputer processor, cause the computer processor to: calculate a tierrank for a first queue from a subset of most significant bits defining atime stamp value associated with the first queue; calculate a tier rankfor a second queue, different than the first queue, from a subset ofmost significant bits defining a time stamp value associated with thesecond queue; search for a highest ranked eligible tier; select the tierrank for the first queue based on a bit associated with the tier rankfor the first queue; and process at least one of a plurality of datapackets in the first queue.
 16. The non-transitory computer-readablemedium of claim 15, further storing instructions to cause the processorto perform operations comprising: increment the time stamp valueassociated with the first queue by a first increment value; andrecalculate the tier rank for the first queue from the subset of mostsignificant bits defining the time stamp value associated with the firstqueue.
 17. The non-transitory computer-readable medium of claim 16,further storing instructions to cause the processor to performoperations comprising: after recalculating the tier rank for the firstqueue, determining that the tier rank for the second queue is higherthan the tier rank for the first queue; and process at least one of theplurality of data packets contained in the second queue.
 18. Thenon-transitory computer-readable medium of claim 17, further storinginstructions to cause the processor to perform operations comprising:incrementing the time stamp value associated with the second queue by asecond increment value different than the first increment value; andafter incrementing the time stamp value associated with the secondqueue, recalculating the tier rank for the second queue from the subsetof most significant bits defining the time stamp value associated withthe second queue.
 19. The non-transitory computer-readable medium ofclaim 16, wherein the first increment value is calculated based on: asize of the at least one of the plurality of data packets contained inthe first queue that was processed, and a weight rate assigned to thefirst queue, wherein the weight rate assigned to the first queue isdifferent than a weight rate assigned to the second queue.
 20. Thenon-transitory computer-readable medium of claim 15, further storinginstructions to cause the processor to perform operations comprising:remove the first queue from the tier rank for the first queue; andupdate the bit associated with the tier rank for the first queue.